package com.zdkj.subway.stm.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zdkj.common.core.entity.BaseEntity;
import com.zdkj.subway.stm.util.LocalDateTimeConverter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 车票回收
 *
 * @author Gofe
 * @date 2020-02-03 14:25:46
 */
@Data
@TableName("sw_st_recovery")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "车票回收")
public class SwStRecovery extends BaseEntity<SwStRecovery> {
    private static final long serialVersionUID = 1L;

    /**
     * 唯一标识
     */
    @TableId
    @ApiModelProperty(value = "唯一标识")
    private Integer id;
    /**
     * 线路编码
     */
    @ApiModelProperty(value = "线路编码")
    @ExcelProperty(value = "线路编码", index = 1)
    private String lineCode;
    /**
     * 车站编码
     */
    @ApiModelProperty(value = "车站编码")
    @ExcelProperty(value = "车站编码", index = 2)
    private String stationCode;
    /**
     * 票种
     */
    @ApiModelProperty(value = "票种")
    @ExcelProperty(value = "票种", index = 3)
    private String ticketType;
    /**
     * 车票名称
     */
    @ApiModelProperty(value = "车票名称")
    @ExcelProperty(value = "车票名称", index = 4)
    private String ticketName;

    /**
     * 次数
     */
    @ApiModelProperty(value = "次数")
    @ExcelProperty(value = "次数", index = 5)
    private String ticketCount;

    /**
     * 金额【元】
     */
    @ApiModelProperty(value = "金额【元】")
    @ExcelProperty(value = "金额【元】", index = 6)
    private BigDecimal ticketAmount;

    /**
     * 回收数量
     */
    @ApiModelProperty(value = "回收数量")
    @ExcelProperty(value = "回收数量", index = 7)
    private String recoverNumber;
    /**
     * 回收人
     */
    @ApiModelProperty(value = "回收人")
    @ExcelProperty(value = "回收人", index = 8)
    private String recoverPersonName;
    /**
     * 回收人工号
     */
    @ApiModelProperty(value = "回收人工号")
    @ExcelProperty(value = "回收人工号", index = 9)
    private String recoverPersonCode;
    /**
     * 回收时间
     */
    @ApiModelProperty(value = "回收时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ExcelProperty(value = "回收时间", converter = LocalDateTimeConverter.class, index = 10)
    private LocalDateTime recoverTime;
    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    @ExcelProperty(value = "备注")
    private String remark;
}
